package com.byedu.mapper.course;

import java.util.HashMap;
import java.util.List;

import com.byedu.domain.course.CourseSearch;
import com.byedu.domain.course.QuestionDO;
import org.springframework.stereotype.Repository;

/**
 * Created by weidangwang on 2017/4/23.
 */
@Repository
public interface QuestionMapper {

    List<QuestionDO> listQuestionsByLibraryItemIds(List<Integer> libraryItemIds);

    /**
     * @description 获取考题集
     * @author chenxigui
     * @date 2017-04-26
     * @param libraryId
     * @return
     */
     List<QuestionDO> listQuestionsByLibraryId(Integer libraryId);

    /**
     * 导入题库
     * @author luo
     * @date 2017-04-28
     * @param question
     * @return
     */
      int insertQuestion(QuestionDO question);

    /**
     * 获取当前题库最大的Id号，导入题库时用
     * @author luo
     * @date 2017-04-28
     * @return
     */
      Integer getQuestionMaxId();

    /**
     * 批量获取考题集
     * @author chenxigui
     * @date 2017-05-29
     * @param questionIds
     * @return
     */
     List<QuestionDO> listQuestionsByIds(List<Integer> questionIds);

    List<QuestionDO> listQuestions();

    int insertQuestionDOList(List<QuestionDO> questionDOList);

    List<QuestionDO> listQuestionsByCourseIdQuestionId(HashMap<String,Object> map);

    List<QuestionDO> listQuestionsByLibItemId(Integer libItemId);

}
